package code.domain;

import java.util.List;
import java.util.Map;
/**
 * 生成文件配置中的Bean对象，记录了生成Bean对象要用到的数据表，模块名，生成的目录结构和文件路径
 * @author puxin.zhang
 *
 */
public class XMLBean {
	/**
	 * 模块名
	 */
	private String modelName;
	/**
	 * 数据表名
	 */
	private String tableName;
	/**
	 * 包名
	 */
	private String packageName;
	/**
	 * 是否允许覆盖现有同名文件，true=允许，false=不允许
	 */
	private String isReplace;
	/**
	 * 生成的目录结构，key=structure标签的id,value=生成文件的根目录
	 */
	private Map<String, String> codePath;
	/**
	 * 数据库中对应主表的外键字段名
	 */
	private String parentKey;
	/**
	 * 子级Bean集合
	 */
	private List<XMLBean> subBeans;
	
	public List<XMLBean> getSubBeans() {
		return subBeans;
	}
	public void setSubBeans(List<XMLBean> subBeans) {
		this.subBeans = subBeans;
	}
	public String getParentKey() {
		return parentKey;
	}
	public void setParentKey(String parentKey) {
		this.parentKey = parentKey;
	}
	public String getModelName() {
		return modelName;
	}
	public void setModelName(String modelName) {
		this.modelName = modelName;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getPackageName() {
		return packageName;
	}
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
	public String getIsReplace() {
		return isReplace;
	}
	public void setIsReplace(String isReplace) {
		this.isReplace = isReplace;
	}
	public Map<String, String> getCodePath() {
		return codePath;
	}
	public void setCodePath(Map<String, String> codePath) {
		this.codePath = codePath;
	}
	
}
